<div class="pz-block pz-block-newsHighlight {$blockParams.css}">
    {if isset($blockParams.blockTitle) && $blockParams.blockTitle != ''}
    <div class="pz-blockTitle">{$blockParams.blockTitle}</div>
    {/if}
{foreach from=$news item=value key=key name=newsItems}
    <div class="{if $smarty.foreach.products.first}first{/if}{if $smarty.foreach.products.last}last{/if} news">

        {if $blockParams.displayTitle}
        <h2 class="title">{if $value.url != '#'}<a href="{$value.url}">{$value.news->getLabel()}</a>{else}{$value.news->getLabel()}{/if}</h2>
        {/if}

        {if $blockParams.displaySubTitle && !is_null($value.news->getEventDates()) && $value.news->getEventDates() != ''}
        <h3 class="subTitle">{$value.news->getEventDates()}</h3>
        {/if}

        {if $blockParams.displayDate || $blockParams.displayAuthor}
        <div class="meta">
            {if $blockParams.displayAuthor}
                <span class="author">
                    {assign var='author' value=$value.news->getAuthor()|fullname}
                    {t 1=$author}By %s{/t}
                </span>
            {/if}
            {if $blockParams.displayDate && $blockParams.displayAuthor} - {/if}
            {if $blockParams.displayDate}
                <span class="date">
                    {date date=$value.news->getModificationDate()} ({$value.news->getModificationDate()|since})
                </span>
            {/if}
        </div>
        {/if}

        {if $value.news->getPictureUrl($blockParams.picWidth,$blockParams.picHeight) != ''}
        <img src="{$value.news->getPictureUrl($blockParams.picWidth,$blockParams.picHeight)}" title="{$value.news->getLabel()}" class="picture" />
        {/if}

        {if $blockParams.displayHeader}
        <p class="header">{$value.news->getFrontHeader($blockParams.headerLength)}</p>
        {/if}

        {if $blockParams.displayLinkLabel && $value.url != '#'}
            <span class="linkLabel">
                <a href="{$value.url}">{if $blockParams.linkLabel}{$blockParams.linkLabel}{else}{t}Read more{/t}{/if}</a>
            </span>
        {/if}

        <div class="clear" ></div>
    </div>
{/foreach}

{if $blockParams.displayLinkAllNews && $urlPage != '#'}
<div class="linkLabelAllNews">
    <a href="{$urlPage}" class="linkAllNews">{if $blockParams.linkAllNews}{$blockParams.linkAllNews}{else}{t}All news{/t}{/if}</a>
</div>
{/if}

</div>
